import 'package:flutter/material.dart';
import 'package:get/get.dart';

class PasswordController extends GetxController with GetSingleTickerProviderStateMixin {
  /// 响应式成员变量
  final _isChecked = false.obs;

  set isChecked(value) => _isChecked.value = value;

  get isChecked => _isChecked.value;

  /// 成员变量
  // tab 页标题
  late final List<String> tabTitles;
  late final TabController tabController;

  TextEditingController textEditingController = TextEditingController();

  @override
  void onInit() {
    super.onInit();
    // 准备一些静态数据
    tabTitles = ['Email'.tr, 'Phone number'.tr];
    tabController = TabController(length: tabTitles.length, vsync: this);
  }
}
